home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / latex209 / contrib / geom / Makefile < prev    next >
Makefile  |  1993-01-11  |  3KB  |  109 lines

  1. #
  2. # Makefile contributed by Steve Rumsby
  3. # and modified by Mark Phillips
  4. #
  5.  
  6. # Where your TeX input files live
  7. TEXINPUTSDEST    = /usr/local/lib/tex/inputs
  8.  
  9. # Name of your Latex (for documentation)
  10. # Note: this must support NFSS in order for you to latex the manual;
  11. # otherwise print manual.ps
  12. LATEX           = latex
  13.  
  14. # Name of your DVI to PostScript converter, and
  15. # flags needed to process the manual
  16. DRIVER        = dvips
  17. DRIVERFLAGS    = 
  18.  
  19. # Where it keeps its support files
  20. PSDIR        = /usr/local/lib/tex/dvips
  21.  
  22. # System executable directory
  23. BINDIR        = /u/geom/bin
  24.  
  25. # Directory for Manual pages
  26. MANDIR        = /u/geom/man/man1
  27.  
  28. # Where perl lives
  29. PERL        = /usr/local/bin/perl
  30.  
  31. # Where you want to install the PostScript copy of the manual
  32. # ("manual.ps").  If you don't want to formally install this,
  33. # leave this definition blank.
  34. MANUALDIR = /u/geom/lib/geomsty
  35.  
  36. # Pathname of directory where you want to install the auxiliary
  37. # programs geomfix and mathlabels.  These are used by mathfig.
  38. AUXDIR=/u/geom/lib/geomsty
  39.  
  40. # If your system doesn't support symbolic links you
  41. # could change this to "cp"
  42. LN        = ln -s
  43.  
  44. # Change this to "install" if you want
  45. CP        = /bin/cp
  46.  
  47. # You shouldn't have to change anything below here
  48.  
  49. ########################################################################
  50.  
  51. SHELL=/bin/sh
  52.  
  53. MANUALFILES = manual.ps
  54.  
  55. all:    mathlabels mathfig mathfig.1
  56.  
  57. install: all
  58.     $(CP) *.sty *.chg *.doc $(TEXINPUTSDEST)
  59.     /bin/rm -f $(TEXINPUTSDEST)/driver.chg
  60.     $(LN) $(TEXINPUTSDEST)/$(DRIVER).chg $(TEXINPUTSDEST)/driver.chg
  61.     $(CP) mathfig $(BINDIR)
  62.     $(CP) mathlabels geomfix $(AUXDIR)
  63.     $(CP) math.pro illustrator.pro $(PSDIR)
  64.     $(CP) mathfig.1 $(MANDIR)
  65.     if [ "${MANUALDIR}" != "" ] ; then /bin/cp ${MANUALFILES} ${MANUALDIR} ; fi
  66.  
  67. mathlabels: Makefile
  68.     /bin/rm -f mathlabels
  69.     (echo '#!$(PERL)'; sed 1d mathlabels.orig) > mathlabels
  70.     chmod 755 mathlabels
  71.  
  72. mathfig: Makefile mathfig.orig
  73.     /bin/rm -f mathfig
  74.     sed -e 's|geomfix=geomfix|geomfix=${AUXDIR}/geomfix|' \
  75.         -e 's|mathlabels=mathlabels|mathlabels=${AUXDIR}/mathlabels|' \
  76.         < mathfig.orig > mathfig
  77.     chmod 755 mathfig
  78.  
  79. mathfig.1: Makefile mathfig.1.orig
  80.     /bin/rm -f mathfig.1
  81.     sed -e 's|^geomfix$$|${AUXDIR}/geomfix|' \
  82.         -e 's|^mathlabels$$|${AUXDIR}/mathlabels|' \
  83.         < mathfig.1.orig > mathfig.1
  84.  
  85. clean:
  86.     /bin/rm -f *~  #*#
  87.  
  88. distclean:    clean
  89.     /bin/rm -f *.dvi *.log *.lof *.aux *.bbl *.blg *.idx *.toc \
  90.       mathlabels mathfig mathfig.1 geomsty.tar.Z geomsty.shar
  91.  
  92. manual.dvi: manual.tex manual.bib
  93.     ${LATEX} manual
  94.     bibtex manual
  95.     ${LATEX} manual
  96.     ${LATEX} manual
  97.  
  98. manual.ps: manual.dvi
  99.     ${DRIVER} ${DRIVERFLAG} manual.dvi
  100.  
  101. doc:    manual.ps
  102.  
  103. tar:    distclean manual.ps
  104.     gnutar cvfZ geomsty.tar.Z `sed '1,/^\** *CONTENTS/ d' README`
  105.  
  106. shar:   distclean manual.ps
  107.     shar -F -L95 -ogeomsty.shar `sed '1,/^\** *CONTENTS/ d' README`
  108.  
  109.